<?php

namespace app\console\controller;

use think\Controller;
use app\console\model\Backup as BackupModel;

class Backup extends Controller
{

    /**
     * 数据库列表
     */
    public function index()
    {
        $data = (new BackupModel)->order('create_time', 'desc')->paginate(12, false);


        return $this->fetch('', [
            "mate_title" => '数据库管理',
            'data'       => $data
        ]);
    }


    /**
     * 清除垃圾图片
     */
    public function picture()
    {


        return $this->fetch('', [
            'mate_title' => '清除垃圾图片',
        ]);
    }

}